package com.docted.design.pattern.factory.abs;

/**
 * @author DoCted
 * @since v1.0 2018/3/5
 */
public class AbstractFactoryTest {


    public static void main(String[] args) {


        AbstractFactory factory = new MilkFactory();
        System.out.println(factory.getMengniu().getName());

        System.out.println(factory.getYili().getName());



    }
}
